C++ Templates: The Complete Guide by David Vandevoorde & Nicolai M. Josuttis & Douglas Gregor
Author:David Vandevoorde & Nicolai M. Josuttis & Douglas Gregor [Vandevoorde, David]
Language: eng
Format: azw3, pdf, epub
ISBN: 9780134778747
Publisher: Pearson Education
Published: 2017-09-15T04:00:00+00:00
18.1 Dynamic Polymorphism
Historically, C++ started with supporting polymorphism only through the use of inheritance combined with virtual functions.2 The art of polymorphic design in this context consists of identifying a common set of capabilities among related object types and declaring them as virtual function interfaces in a common base class.
The poster child for this design approach is an application that manages geometric shapes and allows them to be rendered in some way (e.g., on a screen). In such an application, we might identify an abstract base class (ABC) GeoObj, which declares the common operations and properties applicable to geometric objects. Each concrete class for specific geometric objects then derives from GeoObj (see Figure 18.1):
Download
C++ Templates: The Complete Guide by David Vandevoorde & Nicolai M. Josuttis & Douglas Gregor.pdf
C++ Templates: The Complete Guide by David Vandevoorde & Nicolai M. Josuttis & Douglas Gregor.epub
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Hello! Python by Anthony Briggs(9921)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9799)
The Mikado Method by Ola Ellnestam Daniel Brolund(9782)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8305)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7786)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7768)
Grails in Action by Glen Smith Peter Ledbrook(7700)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7563)
Windows APT Warfare by Sheng-Hao Ma(6887)
Layered Design for Ruby on Rails Applications by Vladimir Dementyev(6620)
Blueprints Visual Scripting for Unreal Engine 5 - Third Edition by Marcos Romero & Brenden Sewell(6486)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6421)
Kotlin in Action by Dmitry Jemerov(5070)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4321)
Functional Programming in JavaScript by Mantyla Dan(4040)
Solidity Programming Essentials by Ritesh Modi(4032)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3822)
Unity 3D Game Development by Anthony Davis & Travis Baptiste & Russell Craig & Ryan Stunkel(3765)
The Ultimate iOS Interview Playbook by Avi Tsadok(3739)
